package util;

import java.io.File;

import org.apache.log4j.Logger;

/**
 * @author suwy
 *
 */
public class CompareFileSize {
	
	private static Logger LOG = Logger.getLogger(CompareFileSize.class);
	private static String baseFileDir = "\\192.168.0.110/downloadData/药监局/";//"I:/data/CHD/tender/药监局/";
	private static String fileDir = "国产医疗器械/";
	private static int pageNum = 2;
	private static int beginNum = 1;
	
	private void compare() {
		for(int i = beginNum; i <= pageNum; i++){
			File file = new File(baseFileDir + fileDir + i + ".htm");
			long size	= file.length();
			if(size < 2500) {
				LOG.info("," + i +",size is " + size);
			}
		}
	}
	
	public static void main(String[] args) {
		CompareFileSize instance = new CompareFileSize();
		instance.compare();
	}

}
